#ifndef IntegralImageFeature_H_
#define IntegralImageFeature_H_

#include "FeatureResponse.h"
#include "Point.h"

namespace findobject{

  class IntegralImageFeature{
public:
	float*** intimg;
	float** counterimg;
	int interpolate_method;
	int dims;
	IntegralImageFeature();
	IntegralImageFeature(Point *** data,int sx,int sy);
	virtual ~IntegralImageFeature();
	virtual void reset(Point ** data);
	virtual FeatureResponse * getResponse(float topx, float topy,float botx,float boty);
	virtual bool acceptable(float topx, float topy,float botx,float boty, int req);
	virtual float interpolateValue(float ** mat, float x, float y);
	//bool acceptable(int topx, int topy,int sizex,int sizey, int requirement);
};

};
#endif
